home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1997 / HAM Radio 1997.iso / vcls / wsanet8a / wsanet / wsanet.txt < prev    next >
Text File  |  1996-04-08  |  1KB  |  32 lines

  1. ' Remember, Visual Basic 1.00 cannot use HLSTR for properties,
  2. ' so the following functions do the same thing as RecvBlock and
  3. ' SendBlock.
  4.  
  5. ' Pass string to send, number sent is returned
  6. Declare Sub NetClientSendBlock Lib "wsanet.vbx" (Block As String) As Integer
  7.  
  8. ' Pass number of chars to get, string is returned
  9. Declare Sub NetClientRecvBlock Lib "wsanet.vbx" (ByVal Size As Int) As String
  10.  
  11. ' The following are the errors that the control will return on its
  12. ' own:
  13.  
  14. Global Const ERR_OUTOFMEMORY = 7 ' If a response string could not be created
  15.  
  16. Global Const VBERR_INVALIDPROPERTYVALUE = 380
  17. Global Const VBERR_BADVBINDEX = 381
  18.  
  19. Global Const VBERR_READONLY = 383  ' For those read only properties
  20. Global Const VBERR_WRITEONLY = 394 ' For those write only properties
  21.  
  22. Global Const WSAERR_BadHostAddr = 20000  ' HostAddr property set to bad form
  23. Global Const WSAERR_AlreadyConn = 20001  ' You can't connect twice!
  24. Global Const WSAERR_NoTimers = 20002     ' No timers available
  25. Global Const WSAERR_RecvBuffer = 20003   ' RecvBuffer invalid!
  26. Global Const WSAERR_SendOverFlow = 20004 ' Your SendSize property is too small
  27. Global Const WSAERR_NotConn = 20005      ' Not aren't connected yet
  28.  
  29. Global Const LISTEN_CLOSE = 0
  30. Global Const LISTEN_REUSE = 1
  31. Global Const LISTEN_DONTREUSE = 2
  32.